{extend name="layout/xilujob"}
{block name="content"}
<div class="cbox clearfix" style="padding:28px 14px;">
    <div class="cbox_li_info">
        <div class="tx_box"><img src="{$user.avatar|cdnurl}" alt=""></div>
        <p class="title single-line">{$user.nickname}，您好！</p>
        <p>&nbsp;</p>
        <div class="btn_box">
            {if $xilujobuser.group_id==2}
<!--            <a style="width:43px" href="{:url('company/detail',['id'=>$user.id])}" class="btn">主页</a>-->
            {else}
<!--            <a style="width:43px" href="{:url('labour/shop',['id'=>$user.id])}" class="btn">主页</a>-->
            {/if}
            <a href="information" class="btn">企业资料</a>
            <a id="add-job" href="{:url('xilujob.job_manage/add')}" {if $job_limit<=$job_count}data-msg="您最多创建{$job_limit}个职位，现已创建{$job_count}个，请联系客服或删除一些无用的职位"{/if} class="btn1">发布职位</a>
        </div>
    </div>
    <div class="cbox_li clearfix">
        <img src="__CDN__/assets/addons/xilujob/images/c_icon1.png" alt="">
        <div class="con">
            <div class="table">
                <div class="table-cell">
                    <p class="num single-line"><a style="color:inherit;" href="{:url('xilujob.user/view_me_enterprise')}">{$statistics.job_view_count|default=0}</a></p>
                    <p>浏览人数</p>
                </div>
                <div class="table">
                    <div class="table-cell">
                        <p class="num single-line"><a style="color:inherit;" href="{:url('xilujob.user/job_signups')}">{$statistics.job_signup_count|default=0}</a></p>
                        <p>报名人数</p>
                    </div>
                </div>
            </div>
            <a href="{:url('xilujob.job_manage/index')}" class="btn">职位管理</a>
        </div>
    </div>
    <div class="cbox_li clearfix">
        <img src="__CDN__/assets/addons/xilujob/images/c_icon2.png" alt="">
        <div class="con">
            <div class="table">
                <div class="table-cell">
                    <p class="num single-line"><a style="color:inherit;" href="{:url('xilujob.user/job_applies')}">{$apply_count}</a></p>
                    <p>投递人数</p>
                </div>
                <div class="table">
                    <div class="table-cell">
                        <p class="num single-line"><a style="color:inherit;" href="{:url('xilujob.user/company_interviews')}">{$interview_count}</a></p>
                        <p>面试人数</p>
                    </div>
                </div>
            </div>
            <a href="{:url('xilujob.user/search_resumes')}" class="btn">搜索简历</a>
        </div>
    </div>
</div>
<div class="ebox">
    <div class="e_tit">
        我的面试安排
    </div>
    <div class="person_resume_bottom clearfix">
        <a href="{:url('xilujob.user/company_interviews',['status'=>2,'date'=>date('Y-m-d')])}" class="item"><i class="Yicon i4"></i>今日安排 <em class="num">{$interview_today}</em> </a>
        <a href="{:url('xilujob.user/company_interviews',['status'=>2,'date'=>date('Y-m-d',time()+3600*24)])}" class="item"><i class="Yicon i4"></i>明日安排 <em class="num">{$interview_tomorrow}</em> </a>
        <a href="{:url('xilujob.user/company_interviews',['status'=>0])}" class="item"><i class="Yicon i4"></i>本月已邀请 <em class="num">{$interview_month}</em> </a>
    </div>
</div>
{if $ad}
<a href="{$ad.url}" class="advert"><img src="{$ad.image|cdnurl}" alt="" class="imgm"></a>
{/if}
<div class="ebox2">
    <div class="e_tit">
        猜你喜欢
        <a href="{:url('xilujob.user/recommend_resumes')}" class="more">更多</a>
    </div>
    <div class="e2_con clearfix">
        {foreach $recommend_resumes as $resume}
        <a href="{:url('xilujob.resume/detail',['id'=>$resume.id])}" class="list_item list_recommend">
            <div class="item_header">
                <div class="clearfix">
                    <p class="job_name single-line">{$resume.personal.realname}</p>
                </div>
                <p class="salary"><span class="col3">期望薪资：</span> {$resume.job_intention.expect_salary.name}/月</p>
                <div class="clearfix">
                    <div class="label">{$resume.job_intention.fav_province.shortname}－{$resume.job_intention.fav_city.shortname}</div>
                    <div class="label">{$resume.personal.education_level.name}</div>
                    <div class="label">{$resume.personal.work_experience.name}</div>
                </div>
            </div>
            <div class="item_footer">
                <div class="company_name">
                    <i class="Yicon icon_company"></i>求职意向：{$resume.job_intention.fav_category.category_name}
                </div>
            </div>
        </a>
        {/foreach}
    </div>
</div>

{/block}